<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.fit.user.entity.OnlineUserEntity"%>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'online_user.jsp' starting page</title>
    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
	<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}


</style>
  </head>
  
  <body>


<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td width="17" valign="top" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=contextPath%>/img/skin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">在线人员</div></td>

      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=contextPath%>/img/skin/mail_leftbg.gif">&nbsp;</td>
  
    <td valign="top" bgcolor="#F7F8F9"  class="table_boder">
   <table width="700" align="center" height="400px" cellSpacing="0" cellPadding="0" >
   <tr>
   <td align="center" width="100%">
   <h1>查看在线办案人员</h1>
	</td></tr>
	<tr>
	<td height="500" >
	<!--  -->
	
	<table cellSpacing="0" cellPadding="0" height="100%" >
	<tr>
	<td valign="top" height="5px">
		<table cellSpacing="0" cellPadding="0" width="100%" >
			<tr align="center"  bgcolor="#1D639F">
			<td class="td_boder"  width="200" style="color:#ffffff;">办案区</td>
			<td class="td_boder" width="100" style="color:#ffffff;">办案民警</td>
			<td class="td_boder" width="300" style="color:#ffffff;">登录时间</td>
			</tr>
		</table>
	</td></tr>
	<tr><td valign="top"  colspan="3" >
	<table  cellSpacing="0" cellPadding="0" width="100%" class="table_boder" >
	   <%
  session=request.getSession(false);
List<OnlineUserEntity> list = (List)application.getAttribute("onlineUserList");
for(int i =0;i<list.size();i++){
OnlineUserEntity entity = list.get(i);
%>
<tr>
<td width="200"  class="td_boder"><%=entity.getArea() %>&nbsp;</td>
<td width="100"  class="td_boder"><%=entity.getPoliceName() %> &nbsp;</td>

<td width="300"  class="td_boder"><%=entity.getLoginTime() %>&nbsp; </td>
</tr>
<% 
}
%>
	</table>
	</td>
	</tr>
</table>
	
	</td></tr>				
					
					</table>
	</td>
    <td background="<%=contextPath%>/img/skin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=contextPath%>/img/skin/buttom_bgs.gif"><img src="<%=contextPath%>/img/skin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  </body>
</html>
